#include "PlotModel.h"

void PlotModel::setCurvePoints(const QPolygonF curvePoints)
{
	_curvePoints = curvePoints;
}

const QPolygonF PlotModel::getCurvePoints() const
{
	return _curvePoints;
}

void PlotModel::setPointPicker(QwtPlotPicker *pointPicker)
{
	_pointPicker = pointPicker;
}

QwtPlotPicker *PlotModel::getPointPicker()const
{
	 return _pointPicker;
}

void PlotModel::setDrawPicker(QwtPlotPicker *drawPicker)
{
	_drawPicker = drawPicker;
}

QwtPlotPicker *PlotModel::getDrawPicker()const
{
	return _drawPicker;
}

void PlotModel::setFitParameter(const QPointF &point)
{
	_params << point;
}

const QPolygonF& PlotModel::getFitParameters() const
{
	return _params;
}

void PlotModel::setFitParameters(const QPolygonF& params) 
{
	_params = params;
}


void PlotModel::setPlotMarkers(QwtPlotMarker *marker)
{
	_plotMarkers.push_back(marker);
}

const vector<QwtPlotMarker *> &PlotModel::getPlotMarkers() const
{
	return _plotMarkers;
}

void PlotModel::setPlotMarker(vector<QwtPlotMarker *> & markerVector)
{
	_plotMarkers = markerVector;
}

void PlotModel::setGlobalPoint(const QPointF &point)
{
	_globalStartEndPoints.push_back(point);
}

const vector<QPointF> &PlotModel::getGlobalPoint() const
{
	return _globalStartEndPoints;
}

void PlotModel::setGlobalPoints(vector<QPointF >  pointsVector) 
{
	_globalStartEndPoints = pointsVector;
}
